/*
  封装 能耗相关请求
 */
import axios from '@/utils/request'

// 定义一个函数并导出
export function findHomeStatistics (account, password) {
  return axios({
    method: 'get',
    url: '/tEnergy/findHomeStatistics'
  })
}

export function totalEnergy (type) {
  return axios({
    method: 'post',
    url: '/tEnergy/findGraph',
    params: {
      type
    }
  })
}

export function findTodayTotal () {
  return axios({
    method: 'get',
    url: '/tEnergy/findTodayTotal'
  })
}
